import React, {Component} from 'react';
import {View, Text} from "react-native";
import ScrollableTabView from 'react-native-scrollable-tab-view';

import CustomBar from  "./component/CustomBar.js";
import Recommend from "./recommend/Recommend";
import New from "./new/New";

class Index extends Component {
  render() {
    return (
      <ScrollableTabView
        initialPage={0}
        renderTabBar={() => <CustomBar />}
      >
        <Recommend tabLabel='推荐'/>
        <New tabLabel='最新'/>
      </ScrollableTabView>
    );
  }
}

export default Index;